﻿<phone:PhoneApplicationPage 
    x:Class="Cnblogs.AboutPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:SlideTransition Mode="SlideUpFadeIn" />
            </toolkit:NavigationInTransition.Forward>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:SlideTransition Mode="SlideUpFadeOut" />
            </toolkit:NavigationInTransition.Backward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:SlideTransition Mode="SlideDownFadeIn" />
            </toolkit:NavigationOutTransition.Forward>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:SlideTransition Mode="SlideDownFadeOut" />
            </toolkit:NavigationOutTransition.Backward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <controls:Pivot Title="博客园">
            <!--About-->
            <controls:PivotItem Header="关于">
                <Grid Margin="12,0,12,0">
                    <StackPanel HorizontalAlignment="Left">

                        <TextBlock Text="博客园:" HorizontalAlignment="Left" FontSize="26" Margin="12,20,0,0"/>
                        <TextBlock TextWrapping="Wrap" 
                           Margin="12,0,0,0"
                           Text="在波涛汹涌的互联网海洋中，有一座宁静的小岛，岛上有一个美丽的花园，它的名字叫博客园。园子里住着程序猿（又名程序员），他们在这里静静的学习、尽情的分享、尽快的成长，并用一行行代码创造着改变世界的力量！ 这里是程序员的家，是程序猿们闭关修炼的地方，也是程序猿们乘风破浪的背后力量" />
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="作者:" HorizontalAlignment="Left" FontSize="26" Margin="12,10,0,0"/>
                            <HyperlinkButton Content="Alexis" HorizontalContentAlignment="Left" Click="HyperlinkButton_Click" Margin="0,10,0,0" />
                            <!--<Button Content="Follow Me" Click="btn_follow_Click" />-->
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <Image Margin="12,10,12,0" Height="48" Width="48" Source="/Images/weibo_logo.png" />
                            <HyperlinkButton Content="微博关注我" HorizontalContentAlignment="Left" Click="btn_follow_Click" Margin="0,10,0,0" />
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="12,10,0,0">
                            <TextBlock Text="博客：" VerticalAlignment="Bottom"/>
                            <HyperlinkButton x:Name="hpBlogs" HorizontalContentAlignment="Left" Content="http://alexis.cnblogs.com" Click="hpBlog_Click"  />
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="12,20,0,0">
                            <TextBlock Text="邮箱：" VerticalAlignment="Bottom" />
                            <HyperlinkButton HorizontalContentAlignment="Left" Content="shuifengxu@gmail.com" Click="Support_Click"  />
                        </StackPanel>

                        <TextBlock Text="版本: 1.4.0.0"  Margin="12,20,0,0" HorizontalAlignment="Left" />
                    </StackPanel>
                </Grid>
            </controls:PivotItem>

            <!--Donate-->
            <controls:PivotItem Header="捐助">
                <Grid Margin="12,0,12,0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <TextBlock Grid.Row="0" Margin="0,0,0,20" TextWrapping="Wrap" Text="如果愿意，您可以通过支付宝对我们进行捐赠，以便我们有更多的资源对产品进行更深入的开发。" />
                    <TextBlock Grid.Row="1" Margin="0,0,0,20" TextWrapping="Wrap" Text="我们真诚感谢您对我们的帮助。" />
                    <TextBlock Grid.Row="2" Margin="0,0,0,20" TextWrapping="Wrap" Text="您可以用浏览器打开以下网址进行操作：" />
                    <HyperlinkButton Grid.Row="3" Margin="-12,0,0,0" Content="https://me.alipay.com/alexis" HorizontalAlignment="Left" Click="hb_alipay_Click" Foreground="{StaticResource PhoneAccentBrush}" />
                </Grid>
            </controls:PivotItem>
        </controls:Pivot>
    </Grid>
</phone:PhoneApplicationPage>
